package org.yuankan.service;



import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.yuankan.entity.user;
import org.yuankan.mapper.UserMapper;


import java.util.List;

@Slf4j
@Service
@Component
public class UserServiceImpl implements UserService{


    @Resource
    UserMapper userMapper;

    @Override
    public List<user> findAll() {
        return userMapper.getAll();
    }

    @Override
    public user getAllId(Integer id) {
        return userMapper.getAllId(id);
    }
}
